How to implement sleep function in TypeScript?
In this article, we will learn How to implement sleep function in TypeScript. Sleep allows the calling thread/program to pause its execution for a specified number of seconds. In TypeScript, you can’t use the traditional synchronous sleep function as you would in some other languages like Python or JavaScript. This is because JavaScript, and by extension TypeScript, is single-threaded, and blocking the main thread would freeze your entire application. However, you can implement a sleep-like function using asynchronous features, such as async/await and Promise....
read more
Angular Material Button Toggle
Angular Material is a UI component library which is developed by Google so that Angular developers can develop modern applications in a structured and responsive way. By making use of this library, we can greatly increase the user experience of an end-user thereby gaining popularity for our application. This library contains modern ready-to-use elements which can be directly used with minimum or no extra code....
read more
How to add Chatbot in React JS Project ?
In today’s digital world, chatbots have become an integral part of many websites and applications. They provide a convenient and efficient way to interact with users, answer their queries, and improve overall user experience. If you’re working on a React JS project and want to incorporate a chatbot, you’re in the right place. In this article, we’ll guide you through the process of adding a chatbot to your React JS project....
read more
Method Overriding in TypeScript
In this article, we will understand some of the necessary details which are associated with Method Overriding, further, we will see how to implement Method Overriding in TypeScript....
read more
How to change Bootstrap Checkbox size ?
Changing Bootstrap Checkbox size involves applying classes like form-check-input-lg for larger checkboxes or form-check-input-sm for smaller ones. Adjustments can be made through additional CSS styling as required....
read more
How to remove all the options of a select box and then add one option and select it using JQuery ?
Given a select box with a fixed number of options, the task is to remove all the options and then add one option and immediately select that particular option using jQuery. There are two approaches that can be taken to achieve this:...
read more
TypeScript Object
In TypeScript, objects play a key role in organizing and manipulating data. They allow us to represent collections of key-value pairs, making our code more expressive and structured. In this article, we’ll learn TypeScript objects, their properties, and how to use their power effectively....
read more
How to generate QR-Code using ‘react-qr-code’ in ReactJS ?
react-qr-code is a module or package for react that provides the QRCode component to generate the code with custom values. QR code is a square grid that can easily be readable with digital devices like smartphones....
read more
Explain ConfigureServices and Configure method in ASP.NET ?
In this article, we will see what is Configure and ConfigureService methods. Basically, these two methods play a very important role in startup class. The baseline of this class is to reduce the dependency of the application on the server. Actually, The Startup class is required to define two methods that will be invoked automatically by ASP.NET Core. They are the ConfigureServices method and the Configure method....
read more
How to check the CodeIgniter version ?
PHP has many frameworks like Laravel, CodeIgniter, etc., but “Codeignitor” is one of the popular MVC frameworks of PHP. Most of the developers prefer to make their projects on Codeignitor because it is very lightweight and also its documentation is easy to understand. Some of the features and advantages or why use Codeignitor and its benefits are given below:...
read more
Create a QR Code Scanner or Reader in HTML CSS & JavaScript
In this article, we will see how we can implement a QR Code Scanner with the help of HTML CSS & JavaScript. A QR code scanner will provide the user with two options to scan the QR code either by uploading the image file of the URL to be scanned or by using the camera of your system to scan the QR code and decode it. This application will show you an alert message with the decoded text of the QR code....
read more
JavaScript Program to Check if a String Contains only Alphabetic Characters
In this article, we are going to learn about checking if a string contains only alphabetic characters in JavaScript.Checking if a string contains only alphabetic characters means verifying that all characters within the string are letters of the alphabet (A-Z or a-z) and do not include any digits, symbols, or other non-alphabetic characters....
read more